<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Weston Calibration Protocol Tool</title>
    <style>
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
            margin: 0;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            background: white;
            border-radius: 15px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
            overflow: hidden;
        }
        
        .header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 30px;
            text-align: center;
        }
        
        .header h1 {
            font-size: 32px;
            margin-bottom: 10px;
        }
        
        .header p {
            font-size: 16px;
            opacity: 0.9;
        }
        
        .content {
            padding: 40px;
        }
        
        .tool-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-bottom: 40px;
        }
        
        .tool-card {
            background: #f8f9fa;
            border: 1px solid #e9ecef;
            border-radius: 12px;
            padding: 25px;
            text-align: center;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .tool-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        }
        
        .tool-icon {
            font-size: 48px;
            margin-bottom: 15px;
        }
        
        .tool-title {
            font-size: 20px;
            font-weight: 600;
            color: #333;
            margin-bottom: 10px;
        }
        
        .tool-description {
            color: #666;
            margin-bottom: 20px;
            line-height: 1.5;
        }
        
        .tool-button {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            text-decoration: none;
            display: inline-block;
            transition: opacity 0.3s ease;
        }
        
        .tool-button:hover {
            opacity: 0.9;
        }
        
        .features {
            background: #f8f9fa;
            border-radius: 12px;
            padding: 30px;
            margin-bottom: 30px;
        }
        
        .features h2 {
            color: #333;
            margin-bottom: 20px;
            font-size: 24px;
        }
        
        .feature-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }
        
        .feature-item {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .feature-icon {
            font-size: 20px;
        }
        
        .footer {
            text-align: center;
            color: #666;
            padding: 20px;
            border-top: 1px solid #e9ecef;
        }
        
        @media (max-width: 768px) {
            .content {
                padding: 20px;
            }
            
            .tool-grid {
                grid-template-columns: 1fr;
            }
            
            .header h1 {
                font-size: 24px;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>Weston Calibration Protocol Tool</h1>
            <p>Weston Meter Calibration Protocol Tool Suite</p>
        </div>
        
        <div class="content">
            <div class="tool-grid">
                <div class="tool-card">
                    <div class="tool-icon">?</div>
                    <div class="tool-title">Main Tool</div>
                    <div class="tool-description">
                        Complete tool for protocol composition, parsing, editing and serial communication
                    </div>
                    <a href="weston_calibration.html" class="tool-button">Open Main Tool</a>
                </div>
                
                <div class="tool-card">
                    <div class="tool-icon">?</div>
                    <div class="tool-title">Protocol Converter</div>
                    <div class="tool-description">
                        Protocol format conversion and data processing tool
                    </div>
                    <a href="converter_tool.html" class="tool-button">Open Converter</a>
                </div>
                
            </div>
            
            <div class="features">
                <h2>Features</h2>
                <div class="feature-list">
                    <div class="feature-item">
                        <span class="feature-icon">?</span>
                        <span>Protocol frame parsing and composition</span>
                    </div>
                    <div class="feature-item">
                        <span class="feature-icon">?</span>
                        <span>Parameter editing and recomposition</span>
                    </div>
                    <div class="feature-item">
                        <span class="feature-icon">?</span>
                        <span>Byte highlighting display</span>
                    </div>
                    <div class="feature-item">
                        <span class="feature-icon">?</span>
                        <span>Serial communication testing</span>
                    </div>
                    <div class="feature-item">
                        <span class="feature-icon">?</span>
                        <span>Batch test frame sending</span>
                    </div>
                    <div class="feature-item">
                        <span class="feature-icon">?</span>
                        <span>Real-time communication log</span>
                    </div>
                </div>
            </div>
        </div>
        
        <div class="footer">
            <p>Weston Calibration Protocol Tool v1.0.0 | MIT License</p>
        </div>
    </div>
</body>
</html>